package android.tusnotas.beans;

import java.util.ArrayList;
import java.util.List;

public class Course {

	private Integer id;
	private String name;
	private String idAula;
	private String classroom;
	private String days;
	private String timetable;
	private Integer instanceId;
	private String examenDate;
	private String attendance;
	private List<Grade> grades;
	private List<News> newsList;
	private List<Folder> folders;
	private Group group;
	
	public Course(){
		super();
		this.grades = new ArrayList<Grade>();
		this.newsList = new ArrayList<News>();
		this.folders = new ArrayList<Folder>();
	}

	public Course(String name, String classroom, Integer instanceId, String days, String timetable, String examenDate) {
		super();
		this.name = name;
		this.classroom = classroom;
		this.instanceId = instanceId;
		this.days = days;
		this.timetable = timetable;
		this.examenDate = examenDate;
		this.grades = new ArrayList<Grade>();
		this.newsList = new ArrayList<News>();
		this.folders = new ArrayList<Folder>();
	}
	
	public Course(String name, String classroom, Integer instanceId, String days, String timetable, 
			String examenDate, String attendance, String idAula) {
		super();
		this.name = name;
		this.classroom = classroom;
		this.instanceId = instanceId;
		this.days = days;
		this.timetable = timetable;
		this.examenDate = examenDate;
		this.attendance = attendance;
		this.idAula = idAula; 
		this.grades = new ArrayList<Grade>();
		this.newsList = new ArrayList<News>();
		this.folders = new ArrayList<Folder>();
	}
	
	public Course(Integer id, String name, String classroom, Integer instanceId, String days, String timetable,
			String examenDate, String attendance, String idAula) {
		super();
		this.id = id;
		this.name = name;
		this.classroom = classroom;
		this.instanceId = instanceId;
		this.days = days;
		this.timetable = timetable;
		this.examenDate = examenDate;
		this.attendance = attendance;
		this.idAula = idAula;
		this.grades = new ArrayList<Grade>();
		this.newsList = new ArrayList<News>();
		this.folders = new ArrayList<Folder>();
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getClassroom() {
		return classroom;
	}
	
	public void setClassroom(String classroom) {
		this.classroom = classroom;
	}
	
	public Integer getInstanceId() {
		return instanceId;
	}
	
	public void setInstanceId(Integer instanceId) {
		this.instanceId = instanceId;
	}

	public void setGrades(List<Grade> grades) {
		this.grades = grades;
	}

	public List<Grade> getGrades() {
		return grades;
	}
	
	public void addGrade(Grade grade){
		this.grades.add(grade);
	}

	public void addNews(News news) {
		this.newsList.add(news);
	}

	public List<News> getNews() {
		return newsList;
	}

	public String getIdAula() {
		return idAula;
	}

	public void setIdAula(String idAula) {
		this.idAula = idAula;
	}

	public String getDays() {
		return days;
	}

	public void setDays(String days) {
		this.days = days;
	}

	public String getTimetable() {
		return timetable;
	}

	public void setTimetalbe(String timetable) {
		this.timetable = timetable;
	}

	public void setNews(List<News> news) {
		this.newsList = news;
	}

	public String getExamenDate() {
		return examenDate;
	}

	public void setExamenDate(String examenDate) {
		this.examenDate = examenDate;
	}

	public String getAttendance() {
		return attendance;
	}

	public void setAttendance(String attendance) {
		this.attendance = attendance;
	}

	public void setTimetable(String timetable) {
		this.timetable = timetable;
	}

	public List<News> getNewsList() {
		return newsList;
	}

	public void setNewsList(List<News> newsList) {
		this.newsList = newsList;
	}

	public List<Folder> getFolders() {
		return folders;
	}

	public void setFolders(List<Folder> folders) {
		this.folders = folders;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	
}

